<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->


<!DOCTYPE html
  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-cn" xml:lang="zh-cn">
<head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
   
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="DC.Type" content="topic">
<meta name="DC.Title" content="原机恢复/即时恢复任务失败，错误详情包含“ORA-01034: ORACLE not available”">
<meta name="product" content="">
<meta name="DC.Relation" scheme="URI" content="oracle_gud_0119.html">
<meta name="prodname" content="">
<meta name="version" content="">
<meta name="brand" content="">
<meta name="DC.Publisher" content="20250306">
<meta name="prodname" content="csbs">
<meta name="documenttype" content="usermanual">
<meta name="DC.Format" content="XHTML">
<meta name="DC.Identifier" content="oracle_gud_0143">
<meta name="DC.Language" content="zh-cn">
<link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
<title>原机恢复/即时恢复任务失败，错误详情包含“ORA-01034: ORACLE not available”</title>
</head>
<body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px"><a name="oracle_gud_0143"></a><a name="oracle_gud_0143"></a>

<h1 class="topictitle1">原机恢复/即时恢复任务失败，错误详情包含“ORA-01034: ORACLE not available”</h1>
<div><div class="section"><h4 class="sectiontitle">现象描述</h4><p>用户执行以下操作后恢复/即时恢复Oracle数据库任务失败，错误详情包含“ORA-01034: ORACLE not available”。</p>
<ol><li>用户对单机（单机的卷类型为ASM）上的数据库A执行备份，产生备份副本a。</li><li>将该单机作为目标位置执行即时挂载，且挂载的副本与目标主机中存在同名数据库A。</li><li>即时挂载后再执行销毁挂载操作。</li><li>使用备份副本a执行原机恢复/即时恢复操作。</li></ol>
</div>
<div class="section"><h4 class="sectiontitle">可能原因</h4><p>执行原机恢复/即时恢复时，<span>OceanProtect</span>会对spfile参数文件进行修改，在上述操作场景下，数据库中不存在spfile参数文件导致启动数据库失败进而恢复任务失败。</p>
</div>
<div class="section"><h4 class="sectiontitle">处理步骤</h4><ol><li><span>使用PuTTY，登录Oracle数据库主机。</span></li><li><span>执行以下命令，切换到<strong>oracle</strong>账户。</span><p><p><strong>su - oracle</strong></p>
</p></li><li><span>执行以下命令添加数据库。</span><p><p><strong>srvctl add database -d </strong><em>数据库名称</em><strong> -o ${ORACLE_HOME} -p </strong><em>spfile参数文件路径</em></p>
</p></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>父主题：</strong> <a href="oracle_gud_0119.html">常见问题</a></div>
</div>
</div>

<div class="hrcopyright"><hr size="2"></div><div class="hwcopyright">版权所有 &copy; 华为技术有限公司</div></body>
</html>